package com.sdy.po;


import java.text.SimpleDateFormat;
import java.util.Date;

public class Notic {

    private Integer id;
    private Integer companyId;
    private String companyName;
    private Integer userId;
    private String user;
    private String title;
    private String info;
    private String data;
    private String noticState;
    private String readState;
    private Integer parmId;
    private Parm parm;
    private Date Time;

    @Override
    public String toString() {
        return "Notic{" +
                "id=" + id +
                ", companyId=" + companyId +
                ", companyName='" + companyName + '\'' +
                ", userId=" + userId +
                ", user=" + user +
                ", title='" + title + '\'' +
                ", info='" + info + '\'' +
                ", data='" + data + '\'' +
                ", noticState='" + noticState + '\'' +
                ", readState='" + readState + '\'' +
                ", parmId=" + parmId +
                ", parm=" + parm +
                ", Time=" + Time +
                '}';
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public Notic(Integer id, Integer companyId, String companyName, Integer userId, String user, String title, String info, String data, String noticState, String readState, Integer parmId, Parm parm, Date time) {
        this.id = id;
        this.companyId = companyId;
        this.companyName = companyName;
        this.userId = userId;
        this.user = user;
        this.title = title;
        this.info = info;
        this.data = data;
        this.noticState = noticState;
        this.readState = readState;
        this.parmId = parmId;
        this.parm = parm;
        Time = time;
    }

    public Notic(Integer id, Integer companyId, String companyName, String title, String info, String data, String noticState, String readState, Integer parmId, Parm parm, Date time) {
        this.id = id;
        this.companyId = companyId;
        this.companyName = companyName;
        this.title = title;
        this.info = info;
        this.data = data;
        this.noticState = noticState;
        this.readState = readState;
        this.parmId = parmId;
        this.parm = parm;
        Time = time;
    }

    public Notic(String title, String info, String noticState, String readState, Date time) {
        this.title = title;
        this.info = info;
        this.noticState = noticState;
        this.readState = readState;
        Time = time;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getReadState() {
        return readState;
    }

    public void setReadState(String readState) {
        this.readState = readState;
    }

    public Notic(Integer companyId, String title, String info, String data, String noticState, String readState, Integer parmId, Parm parm, Date time) {
        this.companyId = companyId;
        this.title = title;
        this.info = info;
        this.data = data;
        this.noticState = noticState;
        this.readState = readState;
        this.parmId = parmId;
        this.parm = parm;
        Time = time;
    }

    public Notic(Integer id, Integer companyId, String title, String info, String data, String noticState, Integer parmId, Parm parm, Date time) {
        this.id = id;
        this.companyId = companyId;
        this.title = title;
        this.info = info;
        this.data = data;
        this.noticState = noticState;
        this.parmId = parmId;
        this.parm = parm;
        Time = time;
    }

    public Parm getParm() {
        return parm;
    }

    public void setParm(Parm parm) {
        this.parm = parm;
    }

    public Notic(Integer companyId, String title, String info, String data, String noticState, Integer parmId) {
        this.companyId = companyId;
        this.title = title;
        this.info = info;
        this.data = data;
        this.noticState = noticState;
        this.parmId = parmId;
    }

    public Integer getParmId() {
        return parmId;
    }

    public void setParmId(Integer paremId) {
        this.parmId = paremId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getNoticState() {
        return noticState;
    }

    public void setNoticState(String noticState) {
        this.noticState = noticState;
    }

    public Date getTime() {
        return Time;
    }

    public void setTime(Date time) {
        Time = time;
    }

    public Notic(Integer companyId, String title, String info, String data, String noticState, Date time) {
        this.companyId = companyId;
        this.title = title;
        this.info = info;
        this.data = data;
        this.noticState = noticState;
        Time = time;
    }

    public Notic() {
    }

    public Notic(Integer id, Integer companyId, String title, String info, String data, String noticState, Date time) {
        this.id = id;
        this.companyId = companyId;
        this.title = title;
        this.info = info;
        this.data = data;
        this.noticState = noticState;
        Time = time;
    }

    public String getTimeString(){
        return new SimpleDateFormat("yyyy-MM-dd HH-mm-ss").format(this.Time);
    }
}


